//
//  NSObject+CaculatorMaker.m
//  链式编程01
//
//  Created by 许卫星 on 16/12/26.
//  Copyright © 2016年 许卫星. All rights reserved.
//

#import "NSObject+CaculatorMaker.h"

@implementation NSObject (CaculatorMaker)
+ (NSInteger)makerCaculators:(void (^)(Caculator *))caculatorMaker
{
    Caculator *caculator = [[Caculator alloc] init];
    caculatorMaker(caculator);
    
    return caculator.result;
}
@end
